﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace RestaurantBooker.Controls
{
    public class Background : Control
    {
        public Background()
        {
            this.DefaultStyleKey = typeof(Background);
        }

        /// <summary>
        /// The <see cref="CornerRadius" /> dependency property's name.
        /// </summary>
        public const string CornerRadiusPropertyName = "CornerRadius";

        /// <summary>
        /// Gets or sets the value of the <see cref="CornerRadius" />
        /// property. This is a dependency property.
        /// </summary>
        public CornerRadius CornerRadius
        {
            get
            {
                return (CornerRadius)GetValue(CornerRadiusProperty);
            }
            set
            {
                SetValue(CornerRadiusProperty, value);
            }
        }

        /// <summary>
        /// Identifies the <see cref="CornerRadius" /> dependency property.
        /// </summary>
        public static readonly DependencyProperty CornerRadiusProperty = DependencyProperty.Register(
            CornerRadiusPropertyName,
            typeof(CornerRadius),
            typeof(Background),
            new PropertyMetadata(new CornerRadius(0)));

    }
}
